package support.dic;

/**
 * Created by yzy on 2021-04-15 16:26
 */
public enum DishCaloricLevel {
    DIET,
    NORMAL,
    FAT,
    ;

    public static DishCaloricLevel getLevel(int caloric){
        if(caloric <=400){
            return DIET;
        }else if (caloric <= 700){
            return NORMAL;
        }else{
            return FAT;
        }
    }
}
